package com.thread.thread;

public class Thread2 implements Runnable{
    @Override
    public void run() {
        String name = Thread.currentThread().getName();
        System.out.println(name);
    }


    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            Thread thread = new Thread(new Thread2());
            thread.start();
        }
    }

}
